/*  1:   */ package org.intellij.lang.regexp;
/*  2:   */ 
/*  3:   */

import com.intellij.icons.AllIcons.FileTypes;
import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.ui.LayeredIcon;
import icons.RegExpSupportIcons;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */ 
/* 12:   */ public class RegExpFileType
/* 13:   */   extends LanguageFileType
/* 14:   */ {
/* 15:29 */   public static final RegExpFileType INSTANCE = new RegExpFileType();
/* 16:   */   private final Icon a;
/* 17:   */   
/* 18:   */   private RegExpFileType()
/* 19:   */   {
/* 20:34 */     super(RegExpLanguage.INSTANCE);
/* 21:   */     
/* 22:36 */     this.a = new LayeredIcon(2);
/* 23:37 */     ((LayeredIcon)this.a).setIcon(AllIcons.FileTypes.Text, 0);
/* 24:38 */     ((LayeredIcon)this.a).setIcon(RegExpSupportIcons.Regexp_filetype_icon, 1);
/* 25:   */   }
/* 26:   */   
/* 27:   */   @NotNull
/* 28:   */   @NonNls
/* 29:   */   public String getName()
/* 30:   */   {
/* 31:48 */     String tmp2_0 = "RegExp";
/* 32:48 */     if (tmp2_0 == null) {
/* 33:48 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/RegExpFileType", "getName" }));
/* 34:   */     }
/* 35:48 */     return tmp2_0;
/* 36:   */   }
/* 37:   */   
/* 38:   */   @NotNull
/* 39:   */   public String getDescription()
/* 40:   */   {
/* 41:53 */     String tmp2_0 = "Regular Expression";
/* 42:53 */     if (tmp2_0 == null) {
/* 43:53 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/RegExpFileType", "getDescription" }));
/* 44:   */     }
/* 45:53 */     return tmp2_0;
/* 46:   */   }
/* 47:   */   
/* 48:   */   @NotNull
/* 49:   */   @NonNls
/* 50:   */   public String getDefaultExtension()
/* 51:   */   {
/* 52:59 */     String tmp2_0 = "regexp";
/* 53:59 */     if (tmp2_0 == null) {
/* 54:59 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/RegExpFileType", "getDefaultExtension" }));
/* 55:   */     }
/* 56:59 */     return tmp2_0;
/* 57:   */   }
/* 58:   */   
/* 59:   */   @Nullable
/* 60:   */   public Icon getIcon()
/* 61:   */   {
/* 62:64 */     return this.a;
/* 63:   */   }
/* 64:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.RegExpFileType

 * JD-Core Version:    0.7.0.1

 */